package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:ShCart构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "ShCart",value = "ShCart")
@Table(name="sh_cart")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ShCart implements Serializable{

	@ApiModelProperty(value = "",required = false)
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Long id;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "userId")
	private Long userId;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "productId")
	@NotNull
	private Long productId;//

	@ApiModelProperty(value = "商品的数量",required = false)
    @Column(name = "number")
	private Integer number;//商品的数量

	@ApiModelProperty(value = "",required = false)
    @Column(name = "create_time")
	private Date createTime;//

	@ApiModelProperty(value = "",required = false)
    @Column(name = "status")
	private Integer status;//
}
